package com.study.order.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.study.order.enums.SexEnum;
import lombok.Data;
//import lombok.Data;
//import lombok.Getter;
//import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author caoqinhuan
 * @since 2022-08-23
 */
@Data
public class Salary implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String name;

    private Integer salary;

    private Integer departmentId;

    private SexEnum sex;

    @TableField(fill = FieldFill.INSERT_UPDATE, insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private LocalDateTime createTime;

    //public Integer getId() {
    //    return id;
    //}
    //
    //public void setId(Integer id) {
    //    this.id = id;
    //}
    //
    //public String getName() {
    //    return name;
    //}
    //
    //public void setName(String name) {
    //    this.name = name;
    //}
    //
    //public Integer getSalary() {
    //    return salary;
    //}
    //
    //public void setSalary(Integer salary) {
    //    this.salary = salary;
    //}
    //
    //public Integer getDepartmentId() {
    //    return departmentId;
    //}
    //
    //public void setDepartmentId(Integer departmentId) {
    //    this.departmentId = departmentId;
    //}
    //
    //public SexEnum getSex() {
    //    return sex;
    //}
    //
    //public void setSex(SexEnum sex) {
    //    this.sex = sex;
    //}
    //
    //@Override
    //public String toString() {
    //    return "Salary{" +
    //            "id=" + id +
    //            ", name='" + name + '\'' +
    //            ", salary=" + salary +
    //            ", departmentId=" + departmentId +
    //            ", sex=" + sex +
    //            '}';
    //}
}
